Add frame drawing API to GdkWindow
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 20 May 2016 15:55:12 +0000 (16:55 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 9 Jun 2016 16:45:40 +0000 (17:45 +0100)
commitfc569f1ac6ff108afc17f7f439480273826af3a6
tree86cb6e091372e1d9279acef801cf50fdf6841080
parentd6187c9a028f678287cc2a7f72e1ea9997fd19d0
Add frame drawing API to GdkWindow

Existing code drawing on a GDK window has to handle the direct drawing
and the buffered drawing by itself, by checking the window type and
whether or not the window is backed by a native windowing surface. After
that, the calling code has to create a Cairo context from the window and
keep an association between the context and the window itself.

This is completely unnecessary: GDK can determine whether or not it
should use a backing store to draw on a GdkWindow as well as create a
Cairo context, and keep track of it.

This allows to simplify the calling code, and enforce some of the
drawing behavior we want to guarantee to users.

https://bugzilla.gnome.org/show_bug.cgi?id=766675
docs/reference/gdk/gdk3-sections.txt
gdk/gdkcairo.h
gdk/gdkwindow.c
gdk/gdkwindow.h